package com.cloudxingkong.dianyinke.NewTeacher.Utils;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.net.Uri;
import android.widget.Toast;

/**
 * Created by 云星空科技 on 2016/3/18.
 */
public class GeneralAlertDialog {
    /**获取到的图片路径*/
    private String picPath;
    private Uri photoUri;
    public static void getDialog(final Context context){
        AlertDialog.Builder builder=new AlertDialog.Builder(context);
        builder.setTitle("提示").setMessage("您想如何上传图片？")
                .setNegativeButton("我要拍照", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {
                        Toast.makeText(context, "我要拍照", Toast.LENGTH_SHORT).show();
                    }
                })
                .setNeutralButton("忽略", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {
                        dialog.dismiss();
                    }
                })
                .setPositiveButton("本地图库", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {
                        Toast.makeText(context, "本地图库", Toast.LENGTH_SHORT).show();
                    }
                }).create().show();
    }


}
